.form {
  display: grid;
  margin: 20px 10px 10px;
}

.form input {
  padding: 5px 10px;
  border: none;
  outline: none;
  transition: border color 0.4s ease;
  border: 1px solid transparent;
  margin-bottom: 10px;
  width: 150px;
}

.fom input:focus {
  border-color: red;
}